Skip to content

Conversation

@QiaoK
Copy link
Contributor

@QiaoK QiaoK commented Dec 1, 2025

oob_allgather_test() do not check isend() call
success, leading to the possibility to use
oob_req->reqs[] un-initialized upon error and
thus to SEGV.

(cherry picked from commit 109f4bc)

Backport this fix in main branch to v4.1.x, so 4.1 version can run with UCC without segmentation fault.

oob_allgather_test() do not check isend() call
success, leading to the possibility to use
oob_req->reqs[] un-initialized upon error and
thus to SEGV.

Signed-off-by: Bruno Faccini <bfaccini@nvidia.com>
(cherry picked from commit 109f4bc)
@github-actions github-actions bot added this to the v4.1.10 milestone Dec 1, 2025
@QiaoK QiaoK changed the title handle errors gracefuly to prevent SEGV Backport handle errors gracefully to prevent SEGV to v4.1.x Dec 1, 2025
bosilca
bosilca previously approved these changes Dec 1, 2025
Comment on lines 197 to 200
if (OMPI_SUCCESS != rc) {
return UCC_ERR_NO_MESSAGE;
}
rc = MCA_PML_CALL(irecv(tmprecv, msglen, MPI_BYTE, recvfrom,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indenting appears to be incorrect.

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Hello! The Git Commit Checker CI bot found a few problems with this PR:

1556b91: coll/ucc: Fix incorrect tab indentation.

  • check_cherry_pick: does not include a cherry pick message (did you need to bot:notacherrypick?)

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@QiaoK QiaoK force-pushed the ucc_seg_fix_v4.1.x branch from 1556b91 to 298d92a Compare December 1, 2025 18:38
@jsquyres
Copy link
Member

jsquyres commented Dec 1, 2025

Please don't use tabs -- we only use 4-space indenting here in Open MPI.

https://docs.open-mpi.org/en/v5.0.x/developers/source-code.html

Thanks!

@QiaoK
Copy link
Contributor Author

QiaoK commented Dec 1, 2025

Please don't use tabs -- we only use 4-space indenting here in Open MPI.

https://docs.open-mpi.org/en/v5.0.x/developers/source-code.html

Thanks!

#13542 will fix this problem in the main branch. We can backport it here after merging that PR.

Signed-off-by: Qiao Kang <qkang@nvidia.com>
(cherry picked from commit 3980e80)
Comment on lines +202 to +204
if (OMPI_SUCCESS != rc) {
return UCC_ERR_NO_MESSAGE;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about this one?

I see. We need to fix this in the main branch too. #13546.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants